import request from '@/utils/request.ts'

const baseURL = '/comment'

/**
 * @name 发布新评论
 * @description 评论对象可为用户、帖子、评论
 */
function newComment(data: any) {
  return request({
    method: 'POST',
    url: `${baseURL}/newComment`,
    data
  })
}

export default { newComment }
